package com.readpost.controller;

import com.readpost.service.ArticleTageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/articleTag")
public class ArticleTageController {


    @Autowired
    private ArticleTageService articleTageService;

    /**
     * 添加文章标签
     * @return 添加文章标签
     */
    @RequestMapping("/addArticleTag")
    public String add() {
        articleTageService.addArticleTag();
        return "添加文章标签";
    }

    /**
     * 文章标签列表
     * @return 文章标签列表
     */
    @RequestMapping("/list")
    public String list() {
        return "文章标签列表";
    }


}
